﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.Windsor;

namespace SampleApp.MvcBackend.Boot
{
    class ServiceProviderWrapper : IServiceProvider
    {
        IWindsorContainer container;

        public ServiceProviderWrapper( IWindsorContainer container )
        {
            this.container = container;
        }

        public object GetService( Type serviceType )
        {
            return this.container.Resolve( serviceType );
        }
    }
}